#include "ccreader.h"
#include "main.h"
#include "ccmd/commandmanager.h"

#include <QTextStream>

namespace Logg
{
    void CCReader::run()
    {
        QTextStream cinp(stdin, QIODevice::ReadOnly);
         while(ILoop)
         {
                 QString cmd = cinp.readLine();
                 if(cmd.size()>0)
                 {
                     _log->LogIt(cmd);
                     CommandManager::ParseCmd(cmd);
                 }
         }
    }
}
